package cn.wdm.system.mapper;

import cn.wdm.system.domain.Permission;
import cn.wdm.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author laozhang
 * @since 2022-06-21
 */
public interface PermissionMapper extends BaseMapper<Permission> {
    /**
     * 根据sn查询
     * @param permissionSn
     * @return
     */
    Permission loadBySn(String permissionSn);

    /**
     * 查询出当前员工所有的权限
     * @param id
     * @return
     */
    List<String> findPermissionsByLogininfoId(Long id);

}
